package org.healthy.service;


import org.healthy.base.constant.RedisKeyConst;
import org.healthy.model.user.User;
import org.healthy.model.page.Pagination;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 *
 */

public interface IUserService {

    /**
     * 发送手机验证码
     */
    public  String sendMobileCode( String mobile);
    /**
     * 用户注册
     *
     * @param user
     */
    public User registerUser(User user);

    /**
     * 用户更新
     *
     * @param user
     */
    public void update(User user);

    /**
     * 用户登录
     *
     * @param openid
     * @param type
     * @return
     */
    public User userLogin(String openid, String type);


    /**
     * 根据用户手机验证码登录
     * @param mobile
     * @param code
     * @return
     */
    public User userLoginByCode(String mobile,String code);


    /**
     * 根据手机号判断用户是否存在
     * @param mobile
     * @return
     */
    public Boolean isUserExist(String mobile);


    /**
     * 重置密码
     *
     * @param mobile
     * @param deftPassWord
     */
    public void resetPassWord(String mobile, String deftPassWord);
    /**
     * 根据mobile查询用户详情
     *
     * @param mobile
     * @return
     */
    public User userDetailByMobile(String mobile);

    /**
     * 根据用户uid查询用户详情
     *
     * @param uid
     * @return
     */
    public User userDetailByUid(Long uid);













}